package com.vehicle_information_management_system.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class TripDto {

    @TableId(value = "trip_id", type = IdType.AUTO)
    private Integer tripId;


    @TableField(value = "usage_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date usageTime;


    @TableField(value = "vehicle_id")
    private Integer vehicleId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "driver_id")
    private Integer driverId;


    @TableField(value = "trip_reason")
    private String tripReason;


    @TableField(value = "return_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date returnTime;

    @TableField(value = "check_status")
    private Integer checkStatus;

    @TableField(value = "is_processed")
    private Integer isProcessed;

}
